import * as api from '../api/api'
export function listDefaultGoods({
  title,
  status,
  page,
  goodsActivityId,
  exceptIds,
  searchType = 0,
  pageSize
}) {
  return api.post('/goods/list-default-goods', {
    title,
    goodsActivityId,
    searchType,
    status,
    exceptIds,
    pageNo: page,
    pageSize
  })
}

export function setStatus({
  id,
  status
}) {
  return api.post('/admin/goods/modify_online_status', {
    id,
    status
  });
}

export function checkAuthStatus({
  id,
  checkStatus,
  checkRemark
}) {
  return api.post('/admin/goods/check', {
    id,
    checkStatus,
    checkRemark
  });
}

export function deleteByIds(id){
  return api.post('/admin/goods/delete',{id});
}
